package com.atom.module.coroutine.test


import com.atom.module.coroutine.core.*
import com.atom.module.coroutine.core.launch
import com.atom.module.coroutine.scope.GlobalScope
import com.atom.module.coroutine.utils.log


suspend fun main(){

   GlobalScope.launch {
       log(1)
       launch {
           delay(1000)
           log(4)
       }
       log(2)
       launch {
           delay(2000)
           log(5)
       }
       log(3)
   }.join()
    log(6)
}